@import './reset';
@import './extend';
@import './nav';

body {
  overflow-x: hidden;
}

a,
a:link,
a:active {
  color: black;
  text-decoration: none;
}

img {
  display: block;
}

.fixed_box {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;

  .mainImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fixed_ele {
    @extend %absolute_Center;
    @extend %flex_column_center;
    // border: 1px solid red;
    height: 100%;

    &>img {
      width: 100%;
      max-width: 616px;
      max-height: 137px;
    }

    .search_box {
      background-color: #fff;
      border-radius: 12px;
      height: 64px;
      margin-top: 40px;
      padding: 4px 32px;
      width: 568px;
      box-sizing: border-box;
      display: flex;
      justify-content: left;
      align-items: center;
      color: rgba(0, 0, 0, 0.65);


      input {
        width: 478px;
        height: 100%;
        font-size: 16px;
        border: none;
        outline: none;
        color: rgba(0, 0, 0, 0.452);
      }

      svg {
        cursor: pointer;
        font-size: 22px;
      }
    }

    button {
      border-radius: 12px;
      font-size: 14px;
      height: 48px;
      margin-top: 40px;
      width: 160px;
      background: #1677ff;
      color: #fff;
      text-shadow: 0 -1px 0 rgba(0, 0, 0, .12);
      box-shadow: 0 2px 0 rgba(0, 0, 0, .045);
      border: none;
      outline: none;
      transition: .3s;

      display: flex;
      justify-content: center;
      align-items: center;

      svg {
        font-size: 14px;
        margin: 2px 0 0 8px;
      }

      &:hover {
        background-color: rgb(80, 150, 248);
        cursor: pointer;
      }
    }

  }

  .fixed_bottomArrow {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translate(-50%);
    // background-color: red;
    display: block;
    animation: bottomArrow 0.8s alternate-reverse infinite ease-in;
  }

  @keyframes bottomArrow {
    to {
      bottom: 25px;
    }
  }

}

.container {
  width: 100%;
  // background-color: #bd5858;
  position: relative;

  .wrapper {
    height: 100vh;
    min-height: 800px;
    background: url('https://project-jiu-files-1308151379.cos.ap-guangzhou.myqcloud.com/project-mayi/login/mayi_login_back.png') center center / cover no-repeat;
  }

  .wrap {
    position: absolute;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 80px;
    // background-color: red;
    @extend %flex_column_center;

    .titleImage {
      height: 140px;
      padding-top: 90px;
    }

    .login_Content {
      width: 328px;
      padding-top: 60px;

      .defaultLogin {
        width: 100%;
        margin-top: 32px;
        @extend %flex_column_center;

        button {
          font-size: 18px;
          font-weight: 500;
          height: 60px;
          padding: 6.4px 50px;
          position: relative;
          width: 360px;
          background: #1677ff;
          border: none;
          color: #fff;
          border-radius: 6px;
          cursor: pointer;
          transition: all .3s;
          @extend %flex_center_center;

          &:hover {
            background: #4096ff;
            border-color: #4096ff;
          }

          span {
            text-indent: 16px;
          }
        }
      }

      .otherLogin {
        width: 100%;
        @extend %flex_column_center;
        // background-color: aquamarine;

        .cardTitle {
          width: 100%;
          background-image: linear-gradient(to top, #ffffffb4 2px, transparent 2px);
          background-repeat: no-repeat;
          margin-bottom: 16px;

          .btnGroup {
            width: 100%;
            font-size: 0;

            button {
              color: #fff;
              width: 50%;
              background: transparent;
              border: none;
              cursor: pointer;
              outline: none;
              padding: 12px 0;
              font-size: 18px;

              &:active {
                color: #1677ff;
              }
            }

          }

          .bottomLine {
            width: 50%;
            height: 3px;
            background-color: #1677ff;
            animation: line 0.2s linear;
            transition: transform 0.2s;
          }

          @keyframes line {
            from {
              width: 0;
            }

            to {
              width: 50%;
            }
          }

        }

        .cardContent {
          width: 100%;

          // background-color: red;
          @extend %flex_column_center;

          .input_box {
            font-feature-settings: "tnum", "tnum";
            background-color: #fff;
            background-image: none;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            box-sizing: border-box;
            color: rgba(0, 0, 0, .65);
            display: inline-block;
            font-size: 14px;
            font-variant: tabular-nums;
            line-height: 1.5715;
            list-style: none;
            min-width: 0;
            position: relative;
            transition: all .3s;
            width: 100%;
            height: 40px;
            margin-bottom: 24px;
            overflow: hidden;
            @extend %flex_center_center;
          }

          input {
            flex: 1;
            height: 100%;
            padding: 4px 11px;
            box-sizing: border-box;
            border: none;
            outline: none;
            color: #888;
            font-size: 14px;
          }

          .switch_box {
            width: 100%;

            .switch_active{
              display: flex !important;
            }
            
            .phone_box {
              width: 100%;
              display: none;

              select {
                width: 80px;
                height: 100%;
                border: none;
                text-align: center;
                color: #888;
                outline: none;
              }
            }

            .email_box {
              width: 100%;
              display: none;
              input {
                width: 100%;
              }
            }

          }

          .code_box {
            width: 100%;
            display: flex;

            button {
              height: 100%;
              background-color: #fafafa;
              border: 1px solid #d9d9d9;
              border-radius: 6px;
              color: rgba(0, 0, 0, .65);
              font-size: 12px;
              font-weight: 400;
              padding: 0 11px;
              position: relative;
              text-align: center;
              transition: all .3s;
              border-bottom-left-radius: 0;
              border-top-left-radius: 0;
              box-shadow: none;
              color: #1677ff;
            }
          }

          .login_btn {
            width: 100%;
            background: #1677ff;
            border-color: #1677ff;
            box-shadow: 0 2px 0 rgba(0, 0, 0, .045);
            color: #fff;
            text-shadow: 0 -1px 0 rgba(0, 0, 0, .12);
            border-radius: 6px;
            font-size: 16px;
            height: 40px;
            padding: 6.4px 15px;
            transition: all 0.3s;
            cursor: pointer;

            &:hover {
              background: #4096ff;
              border-color: #4096ff;
            }
          }
        }

      }

      .link {
        color: #fff;
        font-size: 14px;
        font-weight: 400;
        margin: 0 auto;
        padding-top: 32px;
        text-align: center;
        cursor: pointer;
      }
    }

  }

  footer {
    width: 100%;
    height: 253px;
    background-color: rgb(28, 37, 51);

    .footerBody {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      height: 187px;
      margin: 0px auto;
      max-width: 1180px;
      padding: 48px 0px;
      box-sizing: border-box;
      display: flex;
      flex-flow: row wrap;
      min-width: 0;
      color: white;

      &>div {
        display: block;
        flex: 0 0 37.5%;
        max-width: 37.5%;

        h5 {
          color: rgb(255, 255, 255);
          font-size: 16px;
          font-weight: 500;
          line-height: 22px;
          margin-bottom: 20px;
        }

        .textGroup {
          p {
            color: rgba(255, 255, 255, 0.6);
            font-size: 12px;
            font-weight: 300;
            line-height: 18px;
            margin-bottom: 12px;
          }
        }

        .iconGroup {
          img {
            display: inline-block;
            height: 32px;
            margin-right: 18px;
            width: 32px;
          }
        }

      }

      &>div:last-child {
        display: block;
        flex: 0 0 25%;
        max-width: 25%;
      }
    }

    .footerLaw {
      height: 66px;
      padding: 24px 0px;
      text-align: center;
      box-sizing: border-box;

      &>div {
        color: rgba(255, 255, 255, 0.6);
        display: inline-block;
        font-size: 12px;
        font-weight: 300;
        line-height: 18px;
        padding: 0px 8px;
        position: relative;

        &::after {
          background-color: rgba(255, 255, 255, 0.4);
          content: "";
          display: block;
          height: 12px;
          position: absolute;
          right: 0px;
          top: calc(50% - 6px);
          width: 1px;
        }

        &:last-child::after {
          display: none;
        }
      }
    }
  }
}